<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
<meta charset="UTF-8" />
<title sec:authentication="name"></title>
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" />
<style type="text/css">
body {
	padding-top: 50px;
}

.starter-template {
	padding: 40px 15px;
	text-align: center;
}
</style>
</head>
<body>
	<div class="container">

		<h2>确认授权</h2>
<!-- 		<span th:text="${_csrf?}"></span> -->
		<p>Do you authorize "<span th:text="*{authorizationRequest.clientId}"></span>" at
			"<span th:text="${authorizationRequest.redirectUri}"></span>" to access your protected
			resources with scope <span th:text="${authorizationRequest.scope}"></span>.</p>

		<form id="confirmationForm" name="confirmationForm" th:action="@{/oauth/authorize}" method="post">

			<input th:each="scop:${authorizationRequest.scope}" type="hidden" th:name="@{scope.{s}(s=${scop})}" value="true" /> 

			<input name="user_oauth_approval" value="true" type="hidden" /> 

			<button class="btn btn-primary" type="submit">同意</button>
			<button class="btn btn-danger" type="submit">拒绝</button>
		</form>

	</div>

</body>
</html>